Creates a new AlmanacController.
Namespace:
Keystone.Almanac
Assembly: Keystone.Almanac (in Keystone.Almanac.dll)
Assembly: Keystone.Almanac (in Keystone.Almanac.dll)
public static AlmanacController CreateWith<TCatchAllPersistenceStrategy>(
string applicationName,
bool isEntryWritingActive = true
)
where TCatchAllPersistenceStrategy : PersistenceStrategy, new(), >, new, new, isEntryWritingActive)
This language is not supported or no code example is available.
Type Parameters
- TCatchAllPersistenceStrategy
-
The persistence strategy type that will receive writing requests for all entry types. Since this type is instantiated inside this method, it must have a public parameterless constructor.
Parameters
- applicationName
-
Type: string
The name the invoking application wants to be known as during writing operations.
- isEntryWritingActive
-
Type: bool
Optional argument that defines whether all entry writing is on.
Defaults to true.
Return Value
A new AlmanacController instance.Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.